//
//  BiGoodsViewModel.swift
//  fho
//
//  Created by 郭颢源 on 2021/4/21.
//

import UIKit

class BiGoodsViewModel: BaseViewModel<BiGoodsApi> {
    
    /// 获取我的发货列表
    /// - Returns: 返回发货列表
    @discardableResult
    func getList() -> String {
//        http.request(.register(name: "", pwd: "", code: "")) { (result) in
//            
//        }

//        HttpRequest.GET("", nil) { (result:BaseResponse<JSGoodsModel>) in
//
//        }
        let startTime = CFAbsoluteTimeGetCurrent()
        http.request(.register(name: "nilni", pwd: "", code: "")) { (result:Response<JSDataModel>) in
            print(result.msg!)
        }
        let endTime = CFAbsoluteTimeGetCurrent()
        debugPrint("startTime执行时长：%f 毫秒", startTime*1000)
        debugPrint("endTime执行时长：%f 毫秒", endTime*1000)


        
        return ""
    }

    
}
